﻿@model 软件工程实验.成绩表

@{
    Layout = "/Views/Shared/_LayoutTeacher.cshtml";
}

<main>
    <h2>Create</h2>
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()
        <div>
            <table class="table">
                <thead>
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => Model.学号)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => Model.姓名)
                        </th>
                </thead>
                <tbody>
                    <tr>
                        <th>
                            @Html.TextBoxFor(model => Model.学号)
                        </th>
                        <th>
                            @Html.TextBoxFor(model => Model.姓名)
                        </th>
                    </tr>
                </tbody>
            </table>
            <button type="submit" class="btn btn-primary">添加</button>
            @*@Html.ActionLink("添加", "Create", Model, new { @class = "btn btn-primary" })*@
        </div>
    }
    <div>
        @if (!string.IsNullOrEmpty(ViewBag.ResultMessage))
        {
            @ViewBag.ResultMessage
        }
    </div>
</main>
